#ifndef MANAGER_H
#define MANAGER_H

#include "mainwindow.h"
#include "Logger/logger.h"

/* ---------------------------
  | Class for application managment.
  |     Singletone.
   -------------------------- */

class Manager
{
public:
    static void createInstance();
    static void deleteInstance();
    static Manager* instance();

    void setup();

    MainWindow* mainWindow(){ return mMainWindow; }

private:
    Manager();
    ~Manager();

    MainWindow *mMainWindow;

    static Manager* mAppManager;
};

#define App (Manager::instance())

#endif // MANAGER_H
